﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;

namespace PubSubWeb
{
    // NOTE: If you change the interface name "IPubSubWeb" here, you must also update the reference to "IPubSubWeb" in Web.config.
    [ServiceContract]
    public interface IPubSubWeb
    {
        [WebInvoke(Method = "POST", UriTemplate = "subscribe")]
        [OperationContract]
        void Subscribe(NameValueCollection formsData);

        [WebInvoke(Method = "POST", UriTemplate = "")]
        [OperationContract]
        void Publish(NameValueCollection formsData);
    }
}
